package edu.langnan.xiaoli.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import edu.langnan.xiaoli.core.domain.CommentDO;
import edu.langnan.xiaoli.core.domain.MomentDO;
import edu.langnan.xiaoli.core.dto.CommentDTO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author cql
 */
@Mapper
public interface CommentMapper extends BaseMapper<CommentDO> {


    /**
     * 获取评论
     *
     * @param typeId
     * @param type
     * @return
     */
    List<CommentDTO> findCommentList(@Param("typeId") Integer typeId, @Param("type") String type);
}
